<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->tpl_title;?></title>
<link href="<?php echo WEB_LINK . "/";?>css/style.css" rel="stylesheet" type="text/css" />
<!--danhmucsanpham--><script language="javascript" src="<?php echo WEB_LINK . "/";?>js/danhmuc-menu-jquery.js"></script>
<script type="text/javascript" src="<?php echo WEB_LINK . "/";?>js/jquery-1.4.3.min.js"></script> 
<!--nxkh--><script type="text/javascript" src="<?php echo WEB_LINK . "/";?>js/jcarousellite-1.0.1.js"></script>
<!--nxkh--><script type="text/javascript" src="<?php echo WEB_LINK . "/";?>js/call.js"></script>
<script type="text/javascript" src="<?php echo WEB_LINK . "/";?>js/common.js"></script>
<script type="text/javascript" src="<?php echo WEB_LINK . "/";?>js/jqueryTab.js"></script>
</head>

<body>

<div id="index-header">
	<div id="main-header">
    	<div id="header">
    		<div id="logo"><img src="<?php echo WEB_LINK . "/";?>images/logo.png" /></div><!--logo-->
            <div id="hotline"><span>Hotline: 73 055 055</span></div><!--hotline-->
            <div id="hotro">
            	<?php if (count ($this->listNickName) > 0) :?>
            	<ul>
            		<?php foreach ($this->listNickName as $nickname):?>
                	<li>
                    	<ul>
                        	<li class="yahoo"><a href="ymsgr:SendIM?<?php echo $nickname['nickname'];?>"><img border="0" src="http://mail.opi.yahoo.com/online?u=<?php echo $nickname['nickname'];?>&amp;m=g&amp;t=1"></a></li>
                            <li class="chucdanh"><span><?php echo $nickname["name"];?></span></li>
                        </ul>
                    </li>
                    <?php endforeach;?>
                </ul>
                <?php endif;?>
            </div><!--hotro-->
            <div id="giohang">
            	<div class="dangnhap">
            		<?php if ($this->loginFlag) :?>
            		<div class="cc-dangnhap">
                    	<ul style="line-height:10px;">
                            <li style="width:245px;">
                                <span"><?php echo $this->dataUser['nickname'];?> <img src="<?php echo WEB_LINK . "/";?>images/default/hmenu-unlock.png"></span>
                            </li>
                            <li style="width:245px;">
                                <span>&bull; <a class="underError" href="<?php echo WEB_LINK . "/";?>account/thay-doi-mat-khau#content">Thay đổi mật khẩu</a></span>
                            </li>
                            <li style="width:245px;">
                                <span>&bull; <a class="underError" href="<?php echo WEB_LINK . "/";?>account/cap-nhat-thong-tin#content">Cập nhật thông tin</a></span>
                            </li>
                            <li style="width:245px;">
                            	<span>&bull; <a class="underError" href="<?php echo WEB_LINK . "/";?>product/don-hang#content">Đơn hàng đã đặt</a></span>
                            </li>
                            <li style="width:245px;">
                            	<span>&bull; <a class="underError" href="<?php echo WEB_LINK . "/";?>product/lich-su-mua-hang#content">Lịch sử mua hàng</a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="border:1px solid #CCC;padding:2px 10px;margin-left:96px;position:absolute;"><a href="<?php echo WEB_LINK . "/";?>index.php?m=account&a=out">Thoát</a></span>
                            </li>
                        </ul>
                    </div><!--cc-dangnhap-->
            		<?php else :?>
            		<form name="form1" action="<?php echo WEB_LINK . "/";?>account/login#content" method="post">
            		<input type="hidden" value="" name="urlNow"/>
                    <div class="cc-dangnhap">
                    	<ul>
                            <li>
                                <p>ID:</p>
                                <input type="text" name="nickname" style="width:100px; height:15px; float:right; border:1px solid #999;" />
                            </li>
                            <li>
                                <p>Password:</p>
                                <input type="password" name="password" style="width:100px; height:15px; float:right; border:1px solid #999;" />
                            </li>
                            <li style="width:50px; height:auto; float:right;">
                                <input type="submit" value="Login" name="butSub" style="float:right; background:none; border:1px solid #999; padding:0px 10px 4px 10px; color:#333; height:20px;" />
                            </li>
                            <li>
                            	<a href="<?php echo WEB_LINK . "/";?>account/dang-ky#content" style=" background:url(images/cach-1.png) no-repeat right top;">Đăng ký</a>
                                <a href="<?php echo WEB_LINK . "/";?>account/quen-mat-khau#content" style="padding-left:10px; float:left; display:block;">Quên mật khẩu?</a>
                            </li>
                        </ul>
                    </div><!--cc-dangnhap-->
                    </form>
                    <?php endif;?>
                </div><!--dangnhap-->
            </div><!--giohang-->
            <div id="slogan">
            	<img src="<?php echo WEB_LINK . "/";?>images/slogan.png" />
            </div><!--slogan-->
        </div><!--header-->
    </div><!--main-header-->
</div><!--index-header-->
<div id="index-content">
	<div id="main-content">
        <div id="menu-top">
        	<div class="menu-top-1"></div>
            <div id="wrapper">
                <ul id="nav">
                    <li <?php echo ($this->home) ? "class='active'" : '';?> id="first"><a href="<?php echo WEB_LINK . "/";?>">TRANG CHỦ</a></li>
                    <li <?php echo ($this->giaCuoc) ? "class='active'" : '';?>><a href="<?php echo WEB_LINK . "/";?>gia-cuoc#content">GIÁ CƯỚC</a></li>
                    <li <?php echo ($this->dichVu) ? "class='active'" : '';?>><a href="#">DỊCH VỤ</a>
                    	<?php if (count($this->listDichVu) > 0) :?>
                        <ul>
                        	<?php $i=0;$c=count($this->listDichVu); foreach ($this->listDichVu as $dv) :?>
                            <li><a href="<?php echo WEB_LINK . "/";?>dich-vu-<?php echo $dv['id'];?>#content" <?php if ($i==$c-1) {echo "class='last-1'";}?>><?php echo $dv['name'];?></a></li>
                            <?php $i++; endforeach;?>                            
                        </ul>
                        <?php endif;?>
                    </li>
                    <li <?php echo ($this->khuyenMai) ? "class='active'" : '';?>><a href="<?php echo WEB_LINK . "/";?>tin-khuyen-mai#content">KHUYẾN MÃI</a></li>
                    <li <?php echo ($this->tinTuc) ? "class='active'" : '';?>><a href="<?php echo WEB_LINK . "/";?>tin-tuc-xa-hoi#content">TIN TỨC & SỰ KIỆN</a></li>
                    <li <?php echo ($this->huongDan) ? "class='active'" : '';?>><a href="<?php echo WEB_LINK . "/";?>huong-dan#content">HƯỚNG DẪN</a></li>
                    <li <?php echo ($this->lienHe) ? "class='active'" : '';?>><a href="<?php echo WEB_LINK . "/";?>lien-he#content">LIÊN HỆ</a></li>
                </ul>
            </div><!--End #wrapper-->
            <div class="menu-top-3"></div>
        </div><!--menu-top-->
        <div class="timkiem">
        	<img src="<?php echo WEB_LINK . "/";?>images/bg-timkiem-1.png" />
            <div class="timkiem-1">
            	<div class="giohangcuaban">
                	<ul>
                		<?php if (count($this->gioHangYour) > 0) :?>
                        <li><p>Sản phẩm:<span><?php echo count($this->gioHangYour);?></span></p></li>
                        <li><p>Tổng tiền:<span><?php $tongmoney=0; foreach ($this->gioHangYour as $gh) {$tongmoney += $gh['tongtien'];} echo number_format($tongmoney);?>.000 VNĐ</span></p></li>
                        <?php else :?>
                        <li><p>Sản phẩm:<span>0</span></p></li>
                        <li><p>Tổng tiền:<span>0 VNĐ</span></p></li>
                        <?php endif;?>
                    </ul>
                </div><!--giohangcuaban-->
                <div id="chitiet-giohang">
                    <ul>
                        <li><a href="<?php echo WEB_LINK . "/";?>product/gio-hang#content"><span>Chi tiết giỏ hàng</span></a></li>
                    </ul>
                </div><!--chitiet-giohang-->
                <div class="search">
                	<div class="tt-search">
                    	<p>TÌM KIẾM</p>
                    </div><!--tt-search-->
                    <div class="cc-search">
                    	<form name="search" action="#" method="get">
                            <input id="keyword" type="text" value="Search" style=" width:160px; height:18px; float:left; border:1px solid #999;" />
                            <input type="submit" value="Tìm" style=" background:#CCC; float:right; border:none; margin:0; padding:0 5px 0 5px; height:22px; color:#333;"/>
                    	</form>
                    </div><!--cc-search-->
                </div><!--search-->
                <div class="lienket">
                	<div class="tt-lienket">
                    	<p>LIÊN KẾT WEBSITE</p>
                    </div><!--tt-lienket-->
                    <div class="cc-lienket">
                        <select onchange="GotoURL(this)" class="form" name="cboWebLink"  style=" width:210px; height:23px; float:left; border:none; border:1px solid #999;">
                            <option value="" style="border:none;">-- Liên kết website --</option>
                            <option value="http://www.ava.vn/"> Thiết kế website AVA</option>
                            <option value="http://tuoitre.vn/"> Báo tuổi trẻ</option>
                            <option value="http://vnexpress.net"> Vnexpress</option>
                        </select>
                    </div><!--cc-lienket-->
                </div><!--search-->
            </div><!--timkiem-1-->
            <img src="<?php echo WEB_LINK . "/";?>images/bg-timkiem-2.png" />
        </div><!--timkiem-->
        <div class="doitac-1">
        	<div id="list_product">
                <div class="list_product">
                	<marquee style="height:327px;margin-left:8px;" onmouseover="this.stop();" onmouseout="this.start();" behavior="scroll" direction="up" scrollamount="3" align=center>
                		<table cellspacing="0" cellpadding="0" width="90%">
                			<tr>
                				<td><a href="#"><img src="<?php echo WEB_LINK . "/";?>images/mobifone.jpg" width="100"/></a></td>
                			</tr>
                			<tr><td>&nbsp;</td></tr>
                			<tr>
                				<td><a href=">#"><img src="<?php echo WEB_LINK . "/";?>images/viettel.jpg" width="100"/></a></td>
                			</tr>
                			<tr><td>&nbsp;</td></tr>
                			<tr>
                				<td><a href="#"><img src="<?php echo WEB_LINK . "/";?>images/vietnammobile.jpg" width="100"/></a></td>
                			</tr>
                			<tr><td>&nbsp;</td></tr>
                			<tr>
                				<td><a href="#"><img src="<?php echo WEB_LINK . "/";?>images/beeline.jpg" width="100"/></a></td>
                			</tr>
                			<tr><td>&nbsp;</td></tr>
                			<tr>
                				<td><a href=">#"><img src="<?php echo WEB_LINK . "/";?>images/vinaphone.jpg" width="100"/></a></td>
                			</tr>
                			<tr><td>&nbsp;</td></tr>
                			<tr>
                				<td><a href="#"><img src="<?php echo WEB_LINK . "/";?>images/sfone.jpg" width="100"/></a></td>
                			</tr>
                		</table>
                	</marquee>
                </div>
            </div><!--End #list_product-->
        </div><!--doitac-1-->
        <div class="banner-flash">
        	<img src="<?php echo WEB_LINK . "/";?>images/khuyen-mai.jpg" alt="" width="408" height="328"/>
        </div><!--banner-flash-->
        <div class="huongdan-2">
        	<img src="<?php echo WEB_LINK . "/";?>images/bg-huongdan-1.png" />
            <div class="tinnews">
            	<iframe src="<?php echo WEB_LINK . "/tinKhuyenMai.php";?>" width="198" height="323" style="border:0px;"></iframe>
            </div><!--tinnews-->
            <img src="<?php echo WEB_LINK . "/";?>images/bg-huongdan-2.png" />
        </div><!--huongdan-2-->
        <div id="content">